package fr.generali.accueilclient.gwt.client.ui.components.form.formitem;

import com.google.gwt.user.client.ui.TextBox;

import fr.generali.accueilclient.gwt.client.ui.components.form.formitem.handler.PreventNonNumericEntriesHandler;

public class NumberFormItem extends TextFormItem {

    public NumberFormItem() {
        super();
        ((TextBox ) editableWidget)
                        .addKeyPressHandler(new PreventNonNumericEntriesHandler(((TextBox ) editableWidget)));
    }

}
